<?php

namespace App\Http\Controllers\Module;

use App\Http\Controllers\Controller;
use App\Services\MenusService;

class MenuController extends Controller
{
    public function entry(string $path, MenusService $menuService)
    {
        $url = $menuService->getCurrentRoute($path);
        return redirect($url);
    }
}
